<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>	
  		<SCRIPT type="text/javascript">
		function modifyPassword(){
			window.location.href='displayModifyPasswordSystem.action';		
		}
  		</SCRIPT>
		<style type="text/css">
			#title{
				margin-top:15px;
			}
		</style>
		<s:fielderror></s:fielderror>
  </head>
  <body>
    <div id="main">
    	<s:if test="#request.searchsuccess != null ">
    		<div id="title">
			<h4>
				<s:text name="system.person.text.information" />
			</h4></div><hr />
    		<div>
    			<table>
    				<tr><td align="right"><s:text name="system.person.text.job_num" /></td><td class="table_information"><s:property value="#request.userInfo.job_num" /></td></tr>
    				<tr><td align="right"><s:text name="system.person.text.username" /></td><td class="table_information"><s:property value="#request.userInfo.username" /></td></tr>
    				<tr><td align="right"><s:text name="system.person.text.type" /></td><td class="table_information"><s:property value="#request.userInfo.type" /></td></tr>
    				<!--<tr><td align="right"><s:text name="system.person.text.last.loginIp" /></td><td class="table_information"><s:property value="#request.user.lastIP" /></td></tr>
    				<tr><td align="right"><s:text name="system.person.text.last.loginDate" /></td><td class="table_information"><s:property value="#request.user.lastDate" /></td></tr>
    				  -->
    				<!--  <tr><td align="right"><button id="sbutton" onclick="modifyPassword();">Modify password</button></td><td>&nbsp;</td></tr>-->
    			</table>
    			<s:if test="#request.modifysuccess != null "><h4><s:text name="system.person.text.modify" /></h4></s:if>
    		</div>
    	</s:if>
    	<s:if test="#request.displaymodify != null ">
    	<div id="title">
			<h4>
				<s:text name="system.modify.text.password" />
			</h4></div><hr />
    		<div>
    			<s:form action="modifyPasswordSystem.action" >
    				<s:password name="user.password"  key="system.modify.password" />
    				<s:password name="user.confirmPassword" key="system.modify.confirm_password" />
    				<s:submit></s:submit>
    				<s:form />
    			</s:form>
    		</div>
    	</s:if>
    	<s:if test="#request.addbulletinboard != null ">
    		<div id="title">
			<h4>
				<s:text name="system.add.bulletin.board" />
			</h4></div><hr />
    		<div>
    			<s:form action="addBulletinBoard.action" >
    				<s:textfield name="systemBulletinBoard.title" key="system.add.title"></s:textfield>
    				<s:textarea name="systemBulletinBoard.body" key="system.add.body"></s:textarea>
    				<s:submit></s:submit>
    				<s:form />
    			</s:form>
    		</div>
    	</s:if>
    	<s:if test="#request.addbulletinboardsuccess != null "><h5><s:text name="system.add.add.success" /></h5></s:if>
	</div>
  </body>
</html>
